package com.test.design.example1.carFactory;

import com.test.design.example1.dto.Car;

/**
 * @program: design-patternz
 * @description: 汽车工厂抽象类
 * @author: <a href="mailto:zhengjiaming@gtmap.cn">zhengjiaming</a>
 * @create: 2024-12-26 09:47
 **/
public abstract class CarFactory {
    //工厂生产汽车-抽象方法
    public abstract Car createCar();

    //普通方法
    public String createCar1() {
        return "工厂生产了一辆绿色大巴车卖5块钱";
    }

}
